﻿<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
</head>

<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main" style="height:400px"></div>

    <script src="./js/echarts.js"></script>
    <script src="option.json"></script>
    <script type="text/javascript">
    
        require.config({
            paths: {
                echarts: "./js/dist"
            }
        });
        require(
    		[
    			'echarts',
    			'echarts/chart/line'
    		],
    		function (ec) {
    		    // 基于准备好的dom，初始化echarts图表
    		    var myChart = ec.init(document.getElementById('main'));

    		    // 为echarts对象加载数据
    		    myChart.setOption(option);
    		}
    	);
        document.write("error data : <br />");

    </script>
</body>
